const {mysql} = require('../qcloud')

module.exports = async (ctx) => {
    const {page, pageSize} = ctx.request.query

    const moreBrand = await mysql('nideshop_brand')
                            .select()
                            .limit(pageSize)
                            .offset(Number(page) * pageSize)

    ctx.state.data = {
        moreBrand
    }
}
